package com.etc.youkeshoppingssm.entity;

import java.io.Serializable;

public class Favorite implements Serializable {
    private int id;
    private int userId;
    private int goodsId;

    @Override
    public String toString() {
        return "Favorite{" +
                "id=" + id +
                ", userId=" + userId +
                ", goodsId=" + goodsId +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public Favorite(int userId, int goodsId) {
        this.userId = userId;
        this.goodsId = goodsId;
    }

    public Favorite() {
    }
}
